import request from '@/utils/request'

// get请求 错误码305001
export function getstructureTypeList(params) {
  return request({
    url: `/parkManage/structureType/getList`,
    method: "get",
    params,
  });
}

// 新增 错误码305002
export function add(data) {
  return request({
    url: `/parkManage/structureType/add`,
    method: "post",
    data,
  });
}

// 修改 错误码305003
export function edit(data) {
  return request({
    url: `/parkManage/structureType/edit`,
    method: "put",
    data,
  });
}


// 修改 错误码305004
export function detail(id) {
  return request({
    url: `/parkManage/structureType/${id}`,
    method: "get",
  });
}

// 删除 错误码305005
export function deleteFloor(id) {
  return request({
    url: `/parkManage/structureType/delete/${id}`,
    method: "delete",
  });
}
